package com.huanletao.spring.data.pojo;

import com.huanletao.spring.util.BindConfigurationValue;

import java.util.StringJoiner;

/**
 * <p>
 *
 * </p>
 *
 * @package: com.huanletao.spring.data.pojo
 * @Description:
 * @className: Dog
 * @author: @NNCSKJ ADMIN
 * @copyright: Copyright (c) 2022/7/29 18:59
 * @version: V1.0
 */
public class Dog {
    @BindConfigurationValue("person.name")
    private String name;
    @BindConfigurationValue("person.age")
    private String age;
    private String addrss;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Dog.class.getSimpleName() + "[", "]")
                .add("name='" + name + "'")
                .add("age='" + age + "'")
                .add("addrss='" + addrss + "'")
                .toString();
    }
}
